package com.kernel;

/****************************************
 * @name ProxySubject
 * @description 代理实现类
 * @author 黄彬恒
 * @since 2018/7/16
 ***************************************/
public class ProxySubject implements Subject {
    private Subject subject;

    ProxySubject(Subject subject) {
        this.subject = subject;
    }

    @Override
    public String say(String name, int age) {
        return this.subject.say(name, age);
    }
}
